/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package organize;

/**
 *
 * @author Ahsan
 */
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.BorderLayout;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JWindow;

public class SplashScreen extends JWindow implements Runnable
{
    private static final long serialVersionUID = 1L;

    public void run()
    {
        JLabel SplashLabel = new JLabel(new ImageIcon("C:\\Splash.png"));
        Dimension screen =     Toolkit.getDefaultToolkit().getScreenSize();

        getContentPane().add(SplashLabel,BorderLayout.CENTER);

        setSize(600,400);
        setLocation((screen.width - 500)/2,((screen.height-300)/2));
        setVisible(true);
    }
}